package demo2;

import java.sql.SQLOutput;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 98152
 * Date: 2024-06-01
 * Time: 16:30
 */
class Student {
    private String name;
    private int age;

    public Student(String name, int age) {
        this.name = name;
        this.age = age;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
public class Test4 {
    public static void main(String[] args) {
        String str1 = String.valueOf(123);
        String str2 = String.valueOf(12.34);
        String str3 = String.valueOf(true);
        String str4 = String.valueOf(new Student("zhangsan", 10));
        System.out.println(str1);
        System.out.println(str2);
        System.out.println(str3);
        System.out.println(str4);

        int data1 = Integer.parseInt("123");
        System.out.println(data1);
        double data2 = Double.parseDouble("13.14");
        System.out.println(data2);

        String str5 = "Hello";
        System.out.println(str5.toLowerCase());
        String str6 = "hello";
        System.out.println(str6.toUpperCase());
    }
}
